package com.dgshanger.sanhxiaofeisc.mvp.contract;

import com.dgshanger.sanhxiaofeisc.entity.ShopDetailsEntity;
import com.xx.baseuilibrary.mvp.BaseMvpView;
import com.xx.baseutilslibrary.network.rx.XxBaseHttpObserver;

/**
 * Created by JacobHHH on 2018/4/18.
 */

public interface ShopDetailsContract {

    interface View extends BaseMvpView{

        void setData(ShopDetailsEntity shopDetailsEntity);

        void onDataFailure(String msg);

        void onCollectShopSuccess(String msg);

        void onCancelCollectSuccess(String msg);
    }

    interface Presenter{
        /**
         * 获取首页数据
         * @param shop_id 商家id
         */
        void loadData(String shop_id);

        /**
         * 收藏
         * @param shop_id 商行家id
         */
        void collectShop(String shop_id);

        void cancelCollect(String shop_id);
    }

    interface Model{

        void loadData(String shop_id, XxBaseHttpObserver<ShopDetailsEntity> httpObserver);

        void collectShop(String shop_id,XxBaseHttpObserver<Object> httpObserver);

        void cancelCollect(String shop_id,XxBaseHttpObserver<Object> httpObserver);
    }
}
